.class public Lcom/direction/hold/ui/CommonActivity$ListItemClickListener;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field private synthetic a:Lcom/direction/hold/ui/CommonActivity;


# direct methods
.method protected constructor <init>(Lcom/direction/hold/ui/CommonActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/direction/hold/ui/CommonActivity$ListItemClickListener;->a:Lcom/direction/hold/ui/CommonActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 3

    invoke-virtual {p1, p3}, Landroid/widget/AdapterView;->getItemAtPosition(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/beans/FileInfo;

    invoke-virtual {p1}, Landroid/widget/AdapterView;->getAdapter()Landroid/widget/Adapter;

    move-result-object v1

    check-cast v1, Lcn/cheln/explorer/cpnt/adapter/ThumbnailAdapter;

    invoke-virtual {v1}, Lcn/cheln/explorer/cpnt/adapter/ThumbnailAdapter;->g()Z

    move-result v1

    if-eqz v1, :cond_1

    sget-object v1, Lcn/cheln/explorer/actions/OperationUtil;->c:Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    const/4 v2, 0x1

    if-eq v1, v2, :cond_1

    const-string v0, ""

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "=============== (((FileAdapter) parent.getAdapter()).selectedNum "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1}, Landroid/widget/AdapterView;->getAdapter()Landroid/widget/Adapter;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    const v0, 0x7f080051

    invoke-static {p2, v0}, Lcn/cheln/support/app/a;->a(Ljava/lang/Object;I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/CheckBox;

    invoke-virtual {v0}, Landroid/widget/CheckBox;->performClick()Z

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$ListItemClickListener;->a:Lcom/direction/hold/ui/CommonActivity;

    invoke-virtual {p1}, Landroid/widget/AdapterView;->getAdapter()Landroid/widget/Adapter;

    move-result-object p0

    check-cast p0, Lcn/cheln/explorer/cpnt/adapter/ThumbnailAdapter;

    invoke-virtual {v0, p0}, Lcom/direction/hold/ui/CommonActivity;->a(Lcn/cheln/explorer/cpnt/adapter/ThumbnailAdapter;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v1, p0, Lcom/direction/hold/ui/CommonActivity$ListItemClickListener;->a:Lcom/direction/hold/ui/CommonActivity;

    invoke-virtual {v1, v0}, Lcom/direction/hold/ui/CommonActivity;->a(Lcn/cheln/explorer/beans/FileInfo;)V

    invoke-virtual {v0}, Lcn/cheln/explorer/beans/FileInfo;->c()Ljava/lang/Boolean;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-nez v1, :cond_0

    invoke-virtual {v0}, Lcn/cheln/explorer/beans/FileInfo;->p()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v1

    if-nez v1, :cond_2

    iget-object v1, p0, Lcom/direction/hold/ui/CommonActivity$ListItemClickListener;->a:Lcom/direction/hold/ui/CommonActivity;

    invoke-virtual {v1, v0}, Lcom/direction/hold/ui/CommonActivity;->b(Lcn/cheln/explorer/beans/FileInfo;)V

    goto :goto_0

    :cond_2
    iget-object v1, p0, Lcom/direction/hold/ui/CommonActivity$ListItemClickListener;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v1, v1, Lcom/direction/hold/ui/CommonActivity;->d:Lcom/direction/hold/ui/CommonActivity;

    invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    const-class v2, Lcom/direction/hold/ui/SearchActivity;

    if-eq v1, v2, :cond_4

    invoke-static {v0}, Lcn/cheln/support/app/a;->a(Lcn/cheln/explorer/beans/FileInfo;)Lcn/cheln/explorer/beans/FileInfoUtil$FileType;

    move-result-object v1

    sget-object v2, Lcn/cheln/explorer/beans/FileInfoUtil$FileType;->Apk:Lcn/cheln/explorer/beans/FileInfoUtil$FileType;

    if-eq v1, v2, :cond_3

    invoke-static {v0}, Lcn/cheln/support/app/a;->a(Lcn/cheln/explorer/beans/FileInfo;)Lcn/cheln/explorer/beans/FileInfoUtil$FileType;

    move-result-object v1

    sget-object v2, Lcn/cheln/explorer/beans/FileInfoUtil$FileType;->Lwt:Lcn/cheln/explorer/beans/FileInfoUtil$FileType;

    if-ne v1, v2, :cond_4

    :cond_3
    iget-object v2, p0, Lcom/direction/hold/ui/CommonActivity$ListItemClickListener;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v1, p0, Lcom/direction/hold/ui/CommonActivity$ListItemClickListener;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v1, v1, Lcom/direction/hold/ui/CommonActivity;->a:Lcn/cheln/explorer/ds/a/d;

    iget-object v1, v1, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v1}, Ljava/util/Stack;->peek()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcn/cheln/explorer/ds/a/c;

    iget-object v1, v1, Lcn/cheln/explorer/ds/a/c;->b:Ljava/lang/Object;

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Lcom/direction/hold/ui/CommonActivity;->a(Ljava/lang/String;)V

    :cond_4
    iget-object v1, p0, Lcom/direction/hold/ui/CommonActivity$ListItemClickListener;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v1, v1, Lcom/direction/hold/ui/CommonActivity;->o:Lcn/cheln/explorer/actions/OperationUtil;

    iget-object v0, v0, Lcn/cheln/explorer/beans/FileInfo;->path:Ljava/lang/String;

    iget-object v1, p0, Lcom/direction/hold/ui/CommonActivity$ListItemClickListener;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v1, v1, Lcom/direction/hold/ui/CommonActivity;->d:Lcom/direction/hold/ui/CommonActivity;

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcn/cheln/explorer/actions/OperationUtil;->a(Ljava/lang/String;Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0
.end method
